<?php 
include $this->Render('header.php');
?>
<link rel="stylesheet" type="text/css" href="<?php echo BASE_STYLE;?>/css/admin.css" />
<script type="text/javascript" src="<?php echo BASE_STYLE;?>/js/dyhl.linkpage.js"></script>
<script type="text/javascript" src="<?php echo BASE_STYLE;?>/js/common.js"></script>

<style type="text/css">
.line-bot {
    border:1px solid #a8a8a8;
}

.order-item-box {
    width:100%;
    height:auto;
    overflow:hidden;
    border-bottom:1px solid #a8a8a8;
    padding-bottom:15px;
    margin-bottom:15px;
}

.order-item-box input[type="text"],.order-item-box select {
    background:none;
}

.admin-search-box {
    padding:15px;
}
.title-0{
    font-weight:bold;width:98px;float:left;text-align:right;
}
.daish-box table tr td {font-size:14px;}
.daish-box table tr td em {font-size:12px !important;}
.input-02 {border:1px solid #CCCCCC !important; font-size:14px !important; padding:2px !important; vertical-align:middle; color:#5A96CC !important; background:#f6f6f6 !important; width:70% !important;}
.input-03 {border:1px solid #CCCCCC !important; font-size:14px !important; padding:2px !important; vertical-align:middle; color:#000 !important; background:#00fcff !important; width:50% !important;}
.input-04 {border:1px solid #CCCCCC !important; font-size:14px !important; padding:2px !important; vertical-align:middle;background:#f6f6f6 !important; width:57% !important;}
.input-05 {border:1px solid #CCCCCC !important; font-size:14px !important; padding:2px !important; vertical-align:middle; color:#FF0000 !important; background:#f6f6f6 !important; width:70% !important;}
</style>
<script type="text/javascript" src="<?php echo BASE_STYLE;?>/js/order_fvoinfo.js"></script>
<!--S 公共顶部-->
<div id="page-north">
    <?php
        include $this->Render('nav.php');
        include $this->Render('sub_nav.php');
    ?>
</div>

<div class="daish-box" style="height:90%; overflow-y:scroll;overflow-x:hidden; box-sizing:border-box; padding: 15px 25px; width:1150px; margin:0px 300px 0px 230px;">
<form action="/order/fvoaudit/option/save/" method="post" name="form1" class="J-ajaxForm" id="form1">
    <div class="daish-jbzl-box" style="border:0;">
        <fieldset style="border:1px solid #a8a8a8; padding:10px 15px;">         <legend style="padding:5px 15px;"><h2>征信结果</h2></legend>
            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td height="30px"><div class='title-0'>征信对象：</div><?php echo $this->order['base']['buyer']['ct_name'];?>(购车人)</td>
                </tr>
                <tr>
                    <td height="35px"><div class='title-0'>征信结果：</div> <span style="color:#5A96CC;font-size:14px"><?php echo $this->order['buyer']['ct_remark'];?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo date('Y-m-d H:i:s',$this->order['buyer']['ct_querytime']);?></span></td>
                </tr>
                <?php if(!empty($this->order['spouse'])){?>
                <tr>
                    <td height="30px"><div class='title-0'>征信对象：</div><?php echo $this->order['spouse']['ct_name'];?>(配偶)</td>
                </tr>
                <tr>
                    <td height="35px"><div class='title-0'>征信结果：</div> <span style="color:#5A96CC;font-size:14px"><?php echo $this->order['spouse']['ct_remark'];?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo date('Y-m-d H:i:s',$this->order['spouse']['ct_querytime']);?></span></td>
                </tr>
                <?php
                }
                 $a =0;
                ?>
                <?php
                    if(!empty($this->order['guarantor'])) foreach($this->order['guarantor'] as $key => $val){
                ?>
                <tr>
                    <td height="30px"><div class='title-0'>征信对象：</div><?php echo $val['ct_name'];?>(担保人)</td>
                </tr>
                <tr>
                    <td height="35px"><div class='title-0'>征信结果：</div> <span style="color:#5A96CC;font-size:14px"><?php echo $val['ct_remark'];?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo date('Y-m-d H:i:s',$val['ct_querytime']);?></span></td>
                </tr>
                <?php $a++;?>
                <?php
                }
                ?>

            </table>
       </fieldset>
    </div>
 
    <div class="daish-jbzl-box" style="border:0;">
        <fieldset style="border:1px solid #a8a8a8; padding:10px 15px;">
            <legend style="padding:5px 15px;"><h2>基本信息</h2></legend>
            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td width="280" height="30px"><div class='title-0'>客户编号：</div><?php echo $this->order['base']['o_number'];?></td>
                    <td width="328"><div class='title-0'>业务来源人：</div><?php echo $this->order['base']['o_branch'];?>&nbsp;&nbsp;-&nbsp;&nbsp;<?php echo $this->order['base']['o_uname'];?></td>
                </tr>
                <tr>
                    <td height="30px"><div class='title-0'>签约经销商：</div><?php echo $this->order['base']['o_buyer_type'];?></td>
                    <td><div class='title-0'>经销商：</div><?php echo $this->order['base']['o_buyer'];?></td>
                </tr>
            </table>
       </fieldset>
    </div>
    
    <div class="daish-jbzl-box" style="border:0;">
        <fieldset style="border:1px solid #a8a8a8; padding:10px 15px;">
            <legend style="padding:5px 15px;"><h2>购车人信息</h2></legend>
            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td width="33%" height="30px"><div class='title-0'>购车人姓名：</div>
                        <input type="text" value="<?php echo $this->order['base']['buyer']['ct_name'];?>" class="input-02" readonly/>
                    </td>
                    <td width="33%" height="30px"><div class='title-0'>性别：</div>
                        <input type="text" value="<?php echo $this->order['base']['buyer']['ct_sex'];?>" class="input-02" readonly/>
                    </td>
                    <td width="33%" height="30px"><div class='title-0'>年龄：</div>
                        <input type="text" value="<?php echo $this->order['base']['buyer']['list_age'];?>" class="input-02" readonly/>
                    </td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><div class='title-0'>身份证号：</div>
                        <input type="text" value="<?php echo $this->order['base']['buyer']['ct_code'];?>" class="input-02" readonly/>
                    </td>
                    <td width="33%" height="30px"><div class='title-0'>身份证地址：</div>
                        <input type="text" value="<?php echo $this->order['base']['buyer']['ct_idaddress'];?>" class="input-02" readonly/>
                    </td>
                    <td width="33%" height="30px"><div class='title-0'>身份证归属地：</div>
                        <input type="text" value="<?php echo $this->order['base']['buyer']['ct_affiliation'];?>" class="input-02" readonly/>
                    </td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><div class='title-0'>户籍：</div>
                        <input type="text" value="<?php echo $this->order['owner']['ot_residence_pro'];?><?php echo $this->order['owner']['ot_residence_city'];?><?php echo $this->order['owner']['ot_residence_area'];?>" class="input-02" readonly/>
                    </td>
                    <td width="33%" height="30px"><div class='title-0'>学历：</div>
                        <input type="text" value="<?php echo $this->order['owner']['ot_edu'];?>" class="input-02" readonly/>
                    </td>
                    <td width="33%" height="30px">
                        <div class='title-0'>手机号：</div>
                        <input type="text" value="<?php echo $this->order['owner']['ot_mobile'];?>" class="input-02" style="width:40% !important;" readonly/>
                        &nbsp;&nbsp;
                    <em class="J-mobile-guishu"></em>
                    </td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><div class='title-0'>婚否：</div><?php echo $this->order['owner']['ot_married'];?></td>
                    <td width="33%" height="30px"><div class='title-0'>银行卡号：</div><input type="text" value="<?php echo $this->order['owner']['ot_bankcard'];?>" class="input-02" readonly/></td>
                    <td width="33%" height="30px"><div class='title-0'>邮寄地址：</div>
                    <input type="text" value="<?php echo $this->order['owner']['ot_liveadd'];?>" class="input-02" readonly/></td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><div class='title-0'>固定电话：</div><?php echo $this->order['owner']['ot_tel'];?></td>
                    <td width="33%" height="30px"><div class='title-0'>实际家庭地址：</div>
                  <input type="text" value="<?php echo $this->order['owner']['ot_home_add'];?>" class="input-02" readonly/></td>
                    <td width="33%" height="30px"><div class='title-0'>房产地址：</div>
                        <input type="text" value="<?php echo $this->order['owner']['ot_house_add'];?>" class="input-02" readonly/>
                    </td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><div class='title-0'>房产所有权人：</div><?php echo $this->order['owner']['ot_house_owner'];?></td>
                    <td width="33%" height="30px"><div class='title-0'>与购车人关系：</div><?php echo $this->order['owner']['ot_hown_relation'];?></td>
                    <td width="33%" height="30px"><div class='title-0'>房产性质：</div><?php echo $this->order['owner']['ot_house_nature'];?></td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><div class='title-0'>房屋面积 ：</div><?php echo $this->order['owner']['ot_house_acreage'];?> 平方米</td>
                    <td width="33%" height="30px"><div class='title-0'>目前市价：</div><?php echo $this->order['owner']['ot_house_price'];?>万元</td>
                    <td width="33%" height="30px"><div class='title-0'>房贷金额：</div> <?php echo $this->order['owner']['ot_house_loan'];?>万元</td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><div class='title-0'>年限 ：</div><?php echo $this->order['owner']['ot_house_loyear'];?>月</td>
                    <td width="33%" height="30px"><div class='title-0'>月还款：</div><?php echo $this->order['owner']['ot_house_refundmo'];?>元</td>
                    <td width="33%" height="30px"><div class='title-0'>公司名：</div>
                        <input type="text" value="<?php echo $this->order['owner']['ot_company'];?>" class="input-02" readonly/>
                    </td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><div class='title-0'>单位地址：</div><?php echo $this->order['owner']['ot_company_add'];?></td>
                    <td width="33%" height="30px"><div class='title-0'>单位电话：</div><?php echo $this->order['owner']['ot_company_tel'];?></td>
                    <td width="33%" height="30px"><div class='title-0'>单位类型：</div><?php echo $this->order['owner']['ot_company_type'];?></td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><div class='title-0'>经营期限：</div><?php echo $this->order['owner']['ot_operat_period'];?></td>
                    <td width="33%" height="30px"><div class='title-0'>工龄：</div><?php echo $this->order['owner']['ot_seniority'];?></td>
                    <td width="33%" height="30px"><div class='title-0'>所占股份：</div><?php echo $this->order['owner']['ot_stake'];?>％</td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><div class='title-0'>月收入：</div> <?php echo $this->order['owner']['ot_income_month'];?> 元</td>
                    <td  colspan="2" height="30px"><!--<div class='title-0'>征信结果：</div> <?php echo $this->order['buyer']['ct_remark'];?>--></td>
                </tr>
            </table>
            <script type="text/javascript">
                $(document).ready(function(e) {
                    var mobile = '<?php echo $this->order['owner']['ot_mobile'];?>';
                    if(mobile !=''){
                        $.post('/public/ajax/option/mobile_area/',{'mobile':mobile},function(data){
                            if(data['success']){
                                $(".J-mobile-guishu").html(data['msg']);    
                            }else{
                                Ext.Msg.alert('提示','获取失败！');    
                            }
                            
                        },'json');
                    }
                });
            </script>
        </fieldset>
    </div>

    <div class="daish-jbzl-box" style=" border:0;">
        <fieldset style="border:1px solid #a8a8a8; padding:10px 15px;">
            <legend style="padding:5px 15px;"><h2>紧急联系人</h2></legend>
            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <?php 
                    if(!empty($this->order['owner']['ot_contact'])) foreach($this->order['owner']['ot_contact'] as $k => $v){
                ?>
                <tr>
                    <td width="330" height="30px"><div class='title-0'>姓名：</div>
                        <input type="text" value="<?php echo $v['name'];?>" class="input-02" readonly/>
                    </td>
                    <td width="330"><div class='title-0'>手机号：</div>
                        <input type="text" value="<?php echo $v['mobile'];?>" class="input-02" readonly/>
                    </td>
                    <td><div class='title-0'>关系：</div>
                        <input type="text" value="<?php echo $v['relation'];?>" class="input-02" readonly/>
                    </td>
                </tr>
                <?php
                    }
                ?>
                <tr>
                    <td height="30px" colspan=3><div class='title-0'>备注：</div><?php echo $this->order['owner']['ot_remark'];?></td>
                    <td></td>
                    <td></td>
                </tr>
            </table>
        </fieldset>
    </div>
    <?php if(!empty($this->order['spouse'])){?>
    <div class="daish-jbzl-box" style="border:0;">
        <fieldset style="border:1px solid #a8a8a8; padding:10px 15px;">
            <legend style="padding:5px 15px;"><h2>配偶信息</h2></legend>
            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td width="33%" height="30px"><div class='title-0'>配偶姓名：</div>
                        <input type="text" value="<?php echo $this->order['spouse']['ct_name'];?>" class="input-02" readonly/>
                    </td>
                    <td width="33%" height="30px"><div class='title-0'>性别：</div>
                        <input type="text" value="<?php echo $this->order['spouse']['ct_sex'];?>" class="input-02"  readonly/>
                    </td>
                    <td height="30px"><div class='title-0'>年龄：</div>
                        <input type="text" value="<?php echo $this->order['spouse']['list_age'];?>" class="input-02" readonly/>
                    </td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><div class='title-0'>身份证号：</div>
                        <input type="text" value="<?php echo $this->order['spouse']['ct_code'];?>" class="input-02" readonly/>
                    </td>
                    <td width="33%" height="30px"><div class='title-0'>身份证地址：</div>
                        <input type="text" value="<?php echo $this->order['spouse']['ct_idaddress'];?>" class="input-02" readonly/>
                    </td>
                    <td height="30px"><div class='title-0'>身份证归属地：</div>
                        <input type="text" value="<?php echo $this->order['spouse']['ct_affiliation'];?>" class="input-02" readonly/>
                    </td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><div class='title-0'>户籍：</div>
                        <input type="text" value="<?php echo $this->order['spouse']['ct_detail']['ct_spouse_province'];?><?php echo $this->order['spouse']['ct_detail']['ct_spouse_city'];?><?php echo $this->order['spouse']['ct_detail']['ct_spouse_area'];?>" class="input-02" readonly/>
                    </td>
                    <td width="33%" height="30px"><div class='title-0'>学历：</div>
                        <input type="text" value="<?php echo $this->order['spouse']['ct_detail']['ct_spouse_degree'];?>" class="input-02" readonly/>
                    </td>
                    <td height="30px">
                        <div class='title-0'>手机号：</div>
                        <input type="text" value="<?php echo $this->order['spouse']['ct_detail']['ct_spouse_mobile'];?>" class="input-02" style="width:50% !important;" readonly/>
                        <em class="J-spouse-mobile"></em>
                    </td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><div class='title-0'>邮寄地址：</div>
                        <input type="text" value="<?php echo $this->order['spouse']['ct_detail']['ct_spouse_liveadd'];?>" class="input-02" readonly/>
                    </td>
                    <td width="33%" height="30px"><div class='title-0'>固定电话：</div>
                        <input type="text" value="<?php echo $this->order['spouse']['ct_detail']['ct_spouse_tel'];?>" class="input-02" readonly/>
                    </td>
                    <td height="30px"><div class='title-0'>公司名：</div>
                        <input type="text" value="<?php echo $this->order['spouse']['ct_detail']['ct_spouse_company'];?>" class="input-02" readonly/>
                    </td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><div class='title-0'>单位地址：</div>
                        <input type="text" value="<?php echo $this->order['spouse']['ct_detail']['ct_spouse_cadd'];?>" class="input-02" readonly/>
                    </td>
                    <td width="33%" height="30px"><div class='title-0'>单位电话：</div><?php echo $this->order['spouse']['ct_detail']['ct_spouse_ctel'];?></td>
                    <td height="30px"><div class='title-0'>单位类型：</div><?php echo $this->order['spouse']['ct_detail']['ct_spouse_ctype'];?></td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><div class='title-0'>职务类型：</div><?php echo $this->order['spouse']['ct_detail']['ct_spouse_dutytp'];?></td>
                    <td width="33%" height="30px"><div class='title-0'>职务：</div><?php echo $this->order['spouse']['ct_detail']['ct_spouse_duty'];?></td>
                    <td height="30px"><div class='title-0'>经营期限：</div><?php echo $this->order['spouse']['ct_detail']['ct_spouse_operatpd'];?></td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><div class='title-0'>月收入：</div> <?php echo $this->order['spouse']['ct_detail']['ct_spouse_mincome'];?> 元</td>
                    <td width="33%" height="30px"><div class='title-0'>银行卡号：</div><input type="text" value="<?php echo $this->order['spouse']['ct_detail']['ct_spouse_bankcard'];?>" class="input-02" readonly/></td>

                    <td width="33%" height="30px" ><div class='title-0'>备注：</div><?php echo trim($this->order['spouse']['ct_detail']['ct_spouse_remark']);?></td>
                    <td height="30px"><!--<div class='title-0'>征信结果：</div><?php echo $this->order['spouse']['ct_remark'];?>--></td>
                </tr>
            </table>
            <script type="text/javascript">
                $(document).ready(function(e) {
                    var spouseMobile = '<?php echo $this->order['spouse']['ct_detail']['ct_spouse_mobile'];?>';
                    if(spouseMobile !=''){
                        $.post('/public/ajax/option/mobile_area/',{'mobile':spouseMobile},function(data){
                            if(data['success']){
                                $(".J-spouse-mobile").html(data['msg']);    
                            }else{
                                Ext.Msg.alert('提示','获取失败！');    
                            }
                            
                        },'json');
                    }   
                });
            </script>
        </fieldset>
    </div>
    <?php
    }
    ?>
    
    <script type="text/javascript">
        $(document).ready(function(e) {
            $(".J-guar-mobile").each(function(index, element) {
                (function(element){
                    var guarMobile = $(element).data('mobile');
                    var $that = $(element);
                    if(guarMobile !=''){
                        $.post('/public/ajax/option/mobile_area/',{'mobile':guarMobile},function(data){
                            if(data['success']){
                                $that.html(data['msg']);    
                            }
                        },'json');  
                    }   
                })(element);
            });
        });
    </script>
    <?php $i =0;?>
    <?php
        if(!empty($this->order['guarantor'])) foreach($this->order['guarantor'] as $key => $val){
    ?>
    <div class="daish-jbzl-box" style="border:0;">
        <fieldset style="border:1px solid #a8a8a8; padding:10px 15px;">
            <legend style="padding:5px 15px;"><h2>担保人信息</h2></legend>
            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td width="33%" height="30px"><div class='title-0'>担保人姓名：</div><input type="text" value="<?php echo $val['ct_name'];?>" class="input-02" readonly/></td>
                    <td width="33%" height="30px"><div class='title-0'>性别：</div><input type="text" value="<?php echo $val['ct_sex'];?>" class="input-02" readonly/></td>
                    <td height="30px">
                        <div class='title-0'>年龄：</div><input type="text" value="<?php echo $val['list_age'];?>" class="input-02" style="width:50% !important;" readonly/>
                        <em><?php echo $val['ct_detail']['ct_guarantor_married'];?></em>
                    </td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><div class='title-0'>身份证号：</div><input type="text" value="<?php echo $val['ct_code'];?>" class="input-02" readonly/></td>
                    <td width="33%" height="30px"><div class='title-0'>身份证地址：</div><input type="text" value="<?php echo $val['ct_idaddress'];?>" class="input-02" readonly/></td>
                    <td height="30px"><div class='title-0'>身份证归属地：</div><input type="text" value="<?php echo $val['ct_affiliation'];?>" class="input-02" readonly/></td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><div class='title-0'>户籍：</div><input type="text" value="<?php echo $val['ct_detail']['ct_guarantor_province'];?><?php echo $val['ct_detail']['ct_guarantor_city'];?><?php echo $val['ct_detail']['ct_guarantor_area'];?>" class="input-02" readonly/></td>
                    <td width="33%" height="30px"><div class='title-0'>学历：</div><input type="text" value="<?php echo $val['ct_detail']['ct_guarantor_degree'];?>" class="input-02" readonly/></td>
                    <td height="30px">
                        <div class='title-0'>手机号：</div><input type="text" value="<?php echo $val['ct_detail']['ct_guarantor_mobile'];?>" class="input-02" style="width:50% !important;" readonly/>
                        <em class="J-guar-mobile" data-mobile="<?php echo $val['ct_detail']['ct_guarantor_mobile'];?>"></em>
                    </td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><div class='title-0'>邮寄地址：</div>
                    <input type="text" value="<?php echo $val['ct_detail']['ct_guarantor_liveadd'];?>" class="input-02" readonly /></td>
                    <td width="33%" height="30px"><div class='title-0'>固定电话：</div><?php echo $val['ct_detail']['ct_guarantor_tel'];?></td>
                    <td height="30px"><div class='title-0'>实际家庭地址：</div><?php echo $val['ct_detail']['ct_guarantor_hadd'];?></td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><div class='title-0'>房产地址：</div><input type="text" value="<?php echo $val['ct_detail']['ct_guarantor_headd'];?>" class="input-02" readonly/></td>
                    <td width="33%" height="30px"><div class='title-0'>房产所有权人：</div><?php echo $val['ct_detail']['ct_guarantor_howner'];?></td>
                    <td height="30px"><div class='title-0'>与购车人关系：</div><?php echo $val['ct_detail']['ct_guarantor_hrelation'];?></td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><div class='title-0'>房产性质：</div><?php echo $val['ct_detail']['ct_guarantor_hnature'];?></td>
                    <td width="33%" height="30px"><div class='title-0'>房屋面积：</div><?php echo $val['ct_detail']['ct_guarantor_hacreage'];?></td>
                    <td height="30px"><div class='title-0'>目前市价：</div><?php echo $val['ct_detail']['ct_guarantor_hprice'];?></td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><div class='title-0'>房贷金额：</div><?php echo $val['ct_detail']['ct_guarantor_hloan'];?></td>
                    <td width="33%" height="30px"><div class='title-0'>年限：</div><?php echo $val['ct_detail']['ct_guarantor_hloyear'];?></td>
                    <td height="30px"><div class='title-0'>月还款：</div><?php echo $val['ct_detail']['ct_guarantor_hrefundmo'];?></td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><div class='title-0'>公司名：</div><input type="text" value="<?php echo $val['ct_detail']['ct_guarantor_company'];?>" class="input-02" readonly/></td>
                    <td width="33%" height="30px"><div class='title-0'>单位地址：</div><?php echo $val['ct_detail']['ct_guarantor_cadd'];?></td>
                    <td height="30px"><div class='title-0'>单位电话：</div><?php echo $val['ct_detail']['ct_guarantor_ctel'];?></td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><div class='title-0'>单位类型：</div><?php echo $val['ct_detail']['ct_guarantor_ctype'];?></td>
                    <td width="33%" height="30px"><div class='title-0'>职务类型：</div><?php echo $val['ct_detail']['ct_guarantor_dutytp'];?></td>
                    <td height="30px"><div class='title-0'>职务：</div><?php echo $val['ct_detail']['ct_guarantor_duty'];?></td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><div class='title-0'>经营期限：</div><?php echo $val['ct_detail']['ct_guarantor_operatpd'];?></td>
                    <td width="33%" height="30px"><div class='title-0'>工龄：</div><?php echo $val['ct_detail']['ct_guarantor_seniority'];?></td>
                    <td height="30px"><div class='title-0'>所占股份：</div><?php echo $val['ct_detail']['ct_guarantor_stake'];?>%</td>
                </tr>
                <tr>
                    <td width="33%" height="30px"><div class='title-0'>月收入：</div> <?php echo $val['ct_detail']['ct_guarantor_mincome'];?> 元</td>
                    <td width="33%" height="30px"><div class='title-0'>银行卡号：</div><input type="text" value="<?php echo $val['ct_detail']['ct_guarantor_bankcard'];?>" class="input-02" readonly/></td>
                    <td width="33%" height="30px"><div class='title-0'>担保人类型：</div> <input type="text" value="<?php echo $val['ct_guarantor_type'];?>" class="input-02"/ readonly></td>
                </tr>
                <tr>
                    <td width="33%" height="30px" colspan=3><div class='title-0'>备注：</div><?php echo $val['ct_detail']['ct_guarantor_remark'];?></td>
                </tr>
            </table>
        </fieldset>
    </div>
    <?php $i++;?>
    <?php
        }
    ?>
   <div class="daish-jbzl-box" style="border:0;">
        <fieldset style="border:1px solid #a8a8a8; padding:10px 15px;">
            <legend style="padding:5px 15px;"><h2>车辆信息</h2></legend>
            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td colspan="3"><div class="title-0">
                        车型：</div><input type="text" value="<?php echo $this->order['car']['ot_car_type'].' '.$this->order['car']['ot_car_model'].' '.$this->order['car']['ot_car_fullmodel'];?>" readonly class="input-03" style="width:60% !important;">&nbsp;<?php echo $this->order['car']['ot_car_seating'].'座';?>
                    </td>
                    <td height="35"><div class="title-0">
                        车型构成：</div><input type="text" value="<?php echo $this->order['car']['ot_car_pose'];?>" readonly class="input-03">
                    </td>
                </tr>
                <?php if($this->order['car']['ot_car_pose'] == '二手车'){ ?>
                    <tr>
                        <td height="30px"><div class='title-0'>初次上牌日期：</div><input type ="text" value="<?php echo $this->order['car']['ot_initialrg_time'];?>" class="input-04" readonly/></td>
                        <td><div class='title-0'>评估价：</div><input type ="text" value="<?php echo $this->order['car']['ot_assessment'];?>" class="input-04" readonly/></td>
                        <td><div class='title-0'>评估日期：</div><input type ="text" value="<?php echo $this->order['car']['ot_assess_time'];?>" class="input-04" readonly/></td>
                        <td><div class='title-0'>出报告金额：</div><input type ="text" value="<?php if($this->order['base']['o_bank'] == '中国工商银行股份有限公司哈尔滨东直支行' && isset($this->order['car']['ot_calculated']['d_transaction_amount'])){ echo $this->order['car']['ot_calculated']['d_transaction_amount'];}else{ echo $this->order['car']['ot_assessment'];}?>" class="input-03" readonly/></td>
                    </tr>
                <?php }?>
                <tr>
                    <td height="30px">
                        <div class='title-0'>上牌地：</div>
                        <input type="text" value="<?php echo $this->order['car']['ot_reg_province'];?> <?php echo $this->order['car']['ot_reg_city'];?> <?php echo $this->order['car']['ot_reg_area'];?>" class="input-04" readonly/>
                    </td>
                    <td>
                        <div class='title-0'>是否公牌：</div>
                        <?php echo $this->order['car']['ot_pubbrand'];?>              
                    </td>
                    <td>
                        <div class='title-0'>行驶证车主：</div><?php echo $this->order['car']['ot_car_owners'];?>
                    </td>
                    <td>
                        <div class='title-0'>贷款年限：</div>
                        <input type="text" value="<?php echo $this->order['car']['ot_loan_year'];?>" class="input-03" readonly/>
                    </td>
                </tr>
                <tr>
                    <td height="30px">
                        <div class='title-0'>贷款银行：</div>
                        <input type="text" value="<?php echo $this->order['base']['o_bank'];?>" class="input-04" readonly/>
                    </td>
                    <td>
                        <div class='title-0'>产品编号：</div><?php echo $this->order['car']['ot_bankrt_code'];?>
                    </td>
                    <td>
                        <div class='title-0'>产品类型：</div><?php echo $this->order['car']['ot_loan_type'];?>
                    </td>
                    <td>
                        <div class='title-0'>车价：</div>
                        <input type="text" value="<?php echo $this->order['car']['ot_car_price'];?>" class="input-03" readonly/>
                    </td>
                </tr>
                
                <tr>
                    <td height="30px">
                        <div class='title-0'>银行利率：</div><?php echo $this->order['car']['ot_calculated']['bank_rate'] * 100;?>%
                    </td>
                    <td>
                        <div class='title-0'>实际贷款比例：</div>
                        <span style="font-size:14px;"><?php echo $this->order['car']['ot_calculated']['d_loan_per'];?>％</span>
                    </td>
                    <td>
                        <div class='title-0'>实际首付款：</div>
                        <span>
                            <input type="text" value="<?php echo $this->order['car']['ot_calculated']['d_payment'];?>元" class="input-03" style="width:50% !important;" readonly/>
                        </span>
                    </td>
                    <td>
                        <div class='title-0'>贷款额：</div>
                            <input type="text" value="<?php echo $this->order['car']['ot_loan_limit'];?>元" class="input-03" readonly/>
                    </td>
                </tr>
                
                <tr>
                    <td height="30px">
                        <div class='title-0'>分期手续费：</div>
                        <span style="font-size:14px;"><?php echo $this->order['car']['ot_calculated']['d_aging_poundage'];?>元</span>
                    </td>
                    <td>
                        <?php if($this->order['base']['o_bank']=='中国农业银行股份有限公司萧山分行' || $this->order['base']['o_bank']=='中国工商银行股份有限公司哈尔滨东直支行'){?>
                        <div class='title-0'>其他费用：</div>
                        <?php echo $this->order['car']['ot_car_oprice'];?>元<?php }else if($this->order['base']['o_bank']=='（2017）中国工商银行股份有限公司杭州延中支行' || $this->order['base']['o_bank']=='中国工商银行股份有限公司哈尔滨东直支行'){?>
                        <div class='title-0'>服务费率：</div>
                        <?php echo $this->order['car']['ot_service_rate'];?>%
                        <?php }?>
                    </td>
                    <td>
                    <?php if($this->order['base']['o_bank']=='（2017）中国工商银行股份有限公司杭州延中支行' || $this->order['base']['o_bank']=='中国工商银行股份有限公司哈尔滨东直支行'){?>
                        <div class='title-0' style='width:126px;'>金融服务费比例：</div>
                        <span class="J-d-service-per" style="font-size:14px;"><?php echo $this->order['car']['ot_calculated']['d_service_per'];?>％</span>
                        
                    <?php }?>
                    </td>
                    <td>
                        <?php if($this->order['base']['o_bank']=='（2017）中国工商银行股份有限公司杭州延中支行' || $this->order['base']['o_bank']=='中国工商银行股份有限公司哈尔滨东直支行'){?>
                            <div class='title-0'>金融服务费：</div>
                            <span class="J-d-service-money" style="font-size:14px;">
                                <input type="text" value="<?php echo $this->order['car']['ot_calculated']['d_service_money'];?>元" class="input-03" readonly/>
                            </span>
                        <?php }?>
                    </td>
                </tr>
                <tr>
                    <td height="30px">
                        <div class='title-0'>分期付款总额：</div>
                        <span class="J-d-aging-money" style="font-size:14px;"><?php echo $this->order['car']['ot_calculated']['d_aging_money'];?>元</span>
                        
                    </td>
                    <td>
                        <div class='title-0'>分期付款比例：</div>
                        <span class="J-d-aging-per" style="font-size:14px;"><?php echo $this->order['car']['ot_calculated']['d_aging_per'];?>％</span>
                        
                    </td>
                    <td>
                    </td>
                    <td>
                    
                        <div class='title-0'>公司费率：</div>
                            <input type="text" value="<?php echo $this->order['car']['ot_loan_rate'];?>%" class="input-03" readonly/>
                    </td>
                </tr> 
                <tr>
                    <td height="30px">
                        <div class='title-0' style='width:126px;'>申请分期付款总额：</div>
                        <span class="J-d-signag-money" style="font-size:14px;"><?php echo $this->order['car']['ot_calculated']['d_signag_money'];?>元</span>
                        
                    </td>
                    <td>
                        <div class='title-0' style='width:126px;'>申请分期付款比例：</div>
                        <span class="J-d-aging-moneyper" style="font-size:14px;"><?php echo $this->order['car']['ot_calculated']['d_aging_moneyper'];?>％</span>
                        
                    </td>
                    <td>
                        <div class='title-0'>首期还款额：</div>
                        <span class="J-d-refund-1month">
                            <input type="text" value="<?php echo $this->order['car']['ot_calculated']['d_refund_1month'];?>元" class="input-03" style="width:50% !important;" readonly/>
                        </span>
                        
                    </td>
                    <td>
                        <div class='title-0'>月还款额：</div>
                        <span class="J-d-refund-month">
                            <input type="text" value="<?php echo $this->order['car']['ot_calculated']['d_refund_month'];?>元" class="input-03" style="width:50% !important;" readonly/>
                        </span>
                        
                    </td>
                </tr>
                <tr>
                    <td colspan="4" valign="top">
                        <div class='title-0'>备注：</div><span style="font-size:14px;"><?php echo $this->order['car']['ot_loan_remark'];?></span>
                    </td>
                </tr>
                
              
           </table>
        </fieldset>
    </div>

    <div class="daish-jbzl-box" style="border:0;">
        <fieldset style="border:1px solid #a8a8a8; padding:10px 15px;">
            <legend style="padding:5px 15px;"><h2>面签信息</h2><a href='\\192.168.99.7\credit\<?php echo $this->order['base']['o_number'];?>' target='_blank'>\\192.168.99.7\credit\<?php echo $this->order['base']['o_number'];?></a></legend>
            <dl class="daish-mqxx J-daish-video">
                <dt><em style="font-weight:bold;">视频类</em></dt>
                <dd>
                    <?php if(!empty($this->order['attachment']['oa_video'])) foreach($this->order['attachment']['oa_video'] as $k=>$v){?>
                    <div style="position:relative;display:inline-block; float:left;margin-right:10px;">
                        <em class="ico-close J-ico-close" data-oid="<?php echo $this->order['base']['o_id'];?>" data-type="oa_video" data-fname="<?php echo $v;?>"></em>
                        <img class="J-video-obj" data-url="<?php echo $this->order['attachment']['oa_video_url'][$k];?>" src="<?php echo BASE_STYLE;?>/images/member/default_sildeshow.gif" width="80" height="80" />
                    </div>
                    <?php
                    }
                    ?>
                </dd>
            </dl>
            

         </fieldset>
    </div>
<div class="order-item-box" style="border:0;" id="result">
        <fieldset style="border:1px solid #a8a8a8; padding:10px 15px;">
            <legend style="padding:5px 15px;"><h2>初审意见</h2></legend>
            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td height="35px" width="100px">
                        视频审结果：
                    </td>
                    <td>
                        <select name="a_results">
                            <option value="可以办理"<?php echo $this->order['audit_draft']['a_results'] == '通过' ? ' selected="selected"' : '';?>>可以办理</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td height="100px">
                        视频审备注:
                    </td>
                    <td>
                        <textarea name="a_remarks" style="width:550px; height:55px; background:none; resize:none; vertical-align:text-top;"><?php echo $this->order['audit_draft']['a_remarks'];?></textarea>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        审 核 人：&nbsp;&nbsp;&nbsp;&nbsp;
                        <input type="text" value="<?php echo $this->member_info['u_realname'];?>" name="a_uname" readonly />&nbsp;&nbsp;&nbsp;&nbsp;
                        审核时间：
                        <input type="text" value="<?php echo date('Y-m-d',time());?>" name="a_dateline" readonly />
                    </td>
                </tr>
    
            </table>
        </fieldset>
    </div>



<div class="luru-box-btn mt30" style="position:fixed; bottom:0; width:100%; left:0; background:#FFF; text-align:right; padding:10px 20px; box-sizing:border-box; -webkit-box-sizing:border-box; -moz-box-sizing:border-box;">
        <?php if($this->order['base']['o_videoaudit_status'] == '已通过'){ echo '视频审已通过'; }else{ ?>
            <input type="hidden" name="oid" value="<?php echo $this->order['base']['o_id'];?>" />
            <input type="hidden" name="savetype" value="draft" />
            <a href="javascript:;" class="a-btn-close J-qianchu fn-right mr15">视频审签出</a>
            <input type="submit" class="a-btn-close mr15 J-a-submit" value="仅保存" />
            <input type="submit" class="a-btn-close mr15 J-a-btn-submit" value="视频审核" />
             <?php if($this->order['base']['o_videoaudit_status'] != '暂停中') echo '<a href="javascript:;" class="a-btn-close J-suspend fn-right mr15"/> 视频审暂停</a>' ;?>
        <?php } ?>
    </div>
</form>   
</div>
<script type="text/javascript">
$(document).ready(function(e) {
    $(".J-suspend").on('click',function(){
        var oid = $('input[name="oid"]').val();
        popItem(oid);
    });
    $(".daish-jbzl-box").on('click','.J-ico-close',function(){
        var $this = $(this);
        var oid = $(this).data('oid'),
            type = $(this).data('type'),
            fname =$(this).data('fname');
                    
        Ext.Msg.confirm('提示','您确定要删除此视频吗?',function(btn){
            if(btn=='yes'){
                $.post('/order/faoaudit/option/attach_remove',{'oid':oid,'type':type,'fname':fname},function(data){
                    if(data['success']){
                        $this.closest('div').remove();
                    }else{
                        Ext.Msg.alert('提示','删除失败！');        
                    }
                },'json');  
            }
        });
        
    }); 

});


function popItem(oid){
    var suspendHtml ='<iframe width="100%" height="100%" id="suspend_item" name="suspend_item" src="/order/fvoaudit/option/suspend?oid='+oid+'" frameborder="0"></iframe>';
    var win = new Ext.Window({
            title:'视频审暂停',
            closeable:true,
            closeAction:'hide',
            modal:true,
            width:600,
            height:300,
            resizable:false,
            plain:true,
            layout:'fit',
            html:suspendHtml
        });
        
    win.show(this); 
}
</script>
